﻿using System.Windows.Controls;
using Abstractions;
using Autodesk.AutoCAD.Geometry;

namespace UI.Views
{
    public partial class MainPanel : UserControl
    {
        private readonly IDrawingService _drawingService;

        public MainPanel(IDrawingService drawingService)
        {
            InitializeComponent();
            _drawingService = drawingService;
        }

        private void DrawLine_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            _drawingService.CreateLine(new Point3d(0, 0, 0), new Point3d(100, 100, 0));
        }
    }
}
